package com.onlyMe.view.world.components
{
	import com.flesler.componentas.core.Component;
	import com.onlyMe.world.components.control.ControlComponent;
	import com.onlyMe.world.components.grababble.GrababbleComponent;
	import com.onlyMe.world.components.inventory.InventoryComponent;
	import com.onlyMe.world.components.movement.MovementComponent;
	import com.qb9.flashlib.utils.ClassUtil;

	public final class ComponentViewCreator
	{
		public function ComponentViewCreator()
		{
		}
		
		public function createFrom(component:Component):Component
		{
			var Clazz:Class = ClassUtil.getClass(component);
			
			switch (Clazz)
			{
				case GrababbleComponent: return null;
				case InventoryComponent: return null;
				case ControlComponent: return null;
				case MovementComponent: return null;
					
				default: throw new Error(Clazz + ' is not a valid component type');
			}
		}
	}
}